const express = require("express");
const students = require("../models/students");
const router = new express.Router();
router.post("/student_info",async(req,res)=>{
    console.log(req.body);
    await students.create(req.body);
    res.send("学生信息")
})
router.get("/search_info",async(req,res)=>{
    const user = await students.findOne({stu_id:req.query.stu_id});
    res.send(user);
})
module.exports = router;